<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			const domModule = weex.requireModule('dom')
			domModule.addRule('fontFace', {
				'fontFamily': "iconfont",
				'src': "url('http://at.alicdn.com/t/font_1859985_7mxozsfdvib.ttf')"
			});
			// 初始化用户信息
			this.$store.dispatch('initUser')
			// 监听底部导航中间凸起按钮
			uni.onTabBarMidButtonTap(() => {
				this.authJump({
					url: '/pages/create-live/create-live'
				})
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import url("/common/free.css");
	@import url("/common/common.css");
	/* #ifndef APP-PLUS-NVUE */
	@import url("/common/icon.css");
	/* #endif */
</style>
